<html>
<body>
Reports any instance of <b>for</b>,
<b>while</b> and <b>do</b> statements whose
bodies are guaranteed to execute at most once. Normally, this is an indication of a bug.
<!-- tooltip end -->
<p>
Use the checkbox below to ignore foreach loops.
These are sometimes used to perform an action only on the first item of an iterable in a compact way.
For example:
<pre><code>
  <b>for</b> (String s : stringIterable) {
    doSomethingOnFirstString(s);
    <b>break</b>;
  }
</code></pre>
</body>
</html>